package code08_三大特征.emp;

public class Employee {
	private String name;
	private String sex;
	private int age;
	private Department dept;
	private String duty;

	public Employee() {
		super();
	}

	public Employee(String name, String sex, int age, Department dept, String duty) {
		super();
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.dept = dept;
		this.duty = duty;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Department getDept() {
		return dept;
	}

	public void setDept(Department dept) {
		this.dept = dept;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public void show() {
		System.out.println("大家好，我叫" + name + "，今年" + age + "岁");
		System.out.println("我现在任职在" + dept.getName() + "，是" + duty);
	}
}
